import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',//历史数据
        name: 'home',
        component: () => import('@/views/historyData/index.vue')
    },
    {
        path: '/heavyOverload',//重过载
        name: 'heavyOverload',
        component: () => import('@/views/heavyOverload/index.vue')
    },
    {
        path: '/warningAlert',//预警告警 
        name: 'warningAlert',
        component: () => import('@/views/warningAlert/index.vue')
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
}) 
export default router